<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Sign Up</title>
    </head>
    <body>
        <?php echo form_open('register') ?>
        <input type="text" name="username" placeholder="Username" value="<?php set_value('username') ?>"/><br/>
        <?php echo form_error('username'); ?>
        <input type="text" name="name" placeholder="Author Name" value="<?php set_value('name') ?>"/><br/>
        <?php echo form_error('name'); ?>
        <input type="password" name="password" placeholder="Password" value="<?php set_value('password') ?>"/><br/>
        <?php echo form_error('password'); ?>
        <input type="password" name="cpassword" placeholder="Confirm Password" value="<?php set_value('cpassword') ?>"/><br/>
        <?php echo form_error('cpassword'); ?>
        <input type="text" name="email" placeholder="E-mail" value="<?php set_value('email') ?>"/><br/>
        <?php echo form_error('email'); ?>
        <input type="text" name="cemail" placeholder="Confirm E-mail" value="<?php set_value('cemail') ?>"/><br/>
        <?php echo form_error('cemail'); ?>
        <input type="submit" name="submit" value="OK">
        <?php echo form_close(); ?>
    </body>
</html>
